package com.demo.controller;

import com.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping
public class UserController {
    //请求获取和响应
    @Autowired
    public UserService userService;

    //restful get/users post/users put/users/1 delete/users/1
    @GetMapping("/userList")
    public String getUserList(){
        return "getUserList Ok";
    }
}
